package com.example.dict1.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.dict1.entity.Dict;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Optional;

public interface DictMapper extends BaseMapper<Dict> {

  /**
   * 连表查询
   * @param foreignKey 外键id
   * @return optional包装类
   */
  List<Dict> queryByForeignKey(@Param("foreignKey") Integer foreignKey);
}
